﻿CREATE TABLE [dbo].[DatabaseTrace] (
    [DatabaseTraceId] INT      IDENTITY (1, 1) NOT NULL,
    [DatabaseId]      INT      NULL,
    [TraceStart]      DATETIME NULL,
    [TraceEnd]        DATETIME NULL,
    CONSTRAINT [PK_DatabaseTrace] PRIMARY KEY CLUSTERED ([DatabaseTraceId] ASC),
    CONSTRAINT [FK_DatabaseTrace_Database] FOREIGN KEY ([DatabaseId]) REFERENCES [dbo].[Database] ([DatabaseID])
);

